/**
 * 
 */
package persistence.test;


import java.math.BigDecimal;
import persistence.Column;
import persistence.Id;
import persistence.ManyToOne;


/**
 * @author dga
 * 
 */
public class Book {
  private String title;
  private Long id;
  private BigDecimal price;
  private Category category;
  
  @Id
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  @Column(name="price", type="DECIMAL(10,2)")
  public BigDecimal getPrice() {
    return price;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }
  
  //@Transient
  @ManyToOne
  public Category getCategory() {
    return category;
  }

  public void setCategory(Category category) {
    this.category = category;
  }

  
}
